package cn.rongdao.jrkabao.ui.main.mainfragment.cashadvance.viewholder;

import android.view.View;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerViewHolder;


import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.cashadvance.HomeBean;
import cn.rongdao.jrkabao.ui.main.mainfragment.cashadvance.ui.LoanItemComponent;

/**
 * Created by WANG on 17/12/19.
 */

public class LoanViewHolder extends FRBaseRecyclerViewHolder<HomeBean.LoanCommendBean> {
    private LoanItemComponent loanItemComponent;

    public LoanViewHolder(View view) {
        super(view);
        loanItemComponent = (LoanItemComponent) view.findViewById(R.id.loan_item);
    }

    @Override
    protected void onItemDataUpdated(HomeBean.LoanCommendBean loanCommendBeanList) {
        loanItemComponent.setData(loanCommendBeanList);
    }

}
